﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

namespace LAB3_Cv
{
    public partial class ShowCvForPrint2 : System.Web.UI.Page
    {
        private CvCompare _cv;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["PrintCv"] != null)
                {
                    _cv = Session["PrintCv"] as CvCompare;
                    LoadCv();
                }
            }

        }

        public void LoadCv()
        {
            LabelName.Text = _cv.Name;
            LabelCvHeaderName.Text = _cv.Name;
            LabelPersonNumber.Text = _cv.PersonNumber;
            LabelAddress.Text = _cv.Address;
            LabelZip.Text = _cv.Zip;
            LabelCity.Text = _cv.City;
            TextBoxEducations.Text = _cv.Education;
            TextBoxExperiences.Text = _cv.Experiences;
            TextBoxMerits.Text = _cv.Merits;
            TextBoxInterests.Text = _cv.Interests;
            TextBoxQualities.Text = _cv.PersonalQualities;
            TextBoxMisc.Text = _cv.Miscellaneous;


        }
    }
}